package it.michaellinker.msr.web.util.metric.counter;

import java.util.Map;

public interface RequestCounter<T> {
    /**
     * Add 1 to the provided key.
     *
     * @param key count key.
     */
    void count(T key);

    /**
     * Retrieves the values and resets the counter.
     *
     * @return result presented as map.
     */
    Map<T, Long> getResult();
}
